<style>
    .layui-iconpicker-body.layui-iconpicker-body-page .hide {
        display: none;
    }
</style>
<link rel="stylesheet" href="__STATIC__/plugs/lay-module/autocomplete/autocomplete.css?v={$config.VERSION}" media="all">
<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">

        <div class="layui-form-item">
            <label class="layui-form-label">模型名</label>
            <div class="layui-input-block">
                <input type="text" id="name" name="name" class="layui-input" lay-reqtext="请输入模型名" placeholder="请输入模型名" value="">
                <tip>填写模型名。</tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">表名</label>
            <div class="layui-input-block">
                <input type="text" id="table" name="table" class="layui-input" lay-reqtext="请输入表名" placeholder="请输入表名" value="">
                <tip>填写表名。</tip>
            </div>
        </div>
<!--        <div class="layui-form-item">-->
<!--            <label class="layui-form-label">所属应用</label>-->
<!--            <div class="layui-input-block">-->
<!--                {foreach $app as $key=>$value}-->
<!--                {if $key==0}-->
<!--                <input name="app" value="{$value['identification']}" type="radio" title="{$value['name']}" checked="">-->
<!--                {else}-->
<!--                <input name="app" value="{$value['identification']}" type="radio" title="{$value['name']}">-->
<!--                {/if}-->
<!--                {/foreach}-->
<!--                <tip>填写所属应用</tip>-->
<!--            </div>-->
<!--        </div>-->
        <div class="layui-form-item  layui-row layui-col-xs12">
            <label class="layui-form-label required">引擎</label>
            <div class="layui-input-block">
                <select name="engine" class="layui-select">
                    {foreach $getEngineList as $key=>$vo}
                    <option value="{$key}">{$vo|raw}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item  layui-row layui-col-xs12">
            <label class="layui-form-label required">所属数据库</label>
            <div class="layui-input-block">
                <select name="databases" class="layui-select">
                    {foreach $databases as $key=>$vo}
                    <option value="{$vo}">{$vo|raw}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item  layui-row layui-col-xs12">
            <label class="layui-form-label required">表格类型</label>
            <div class="layui-input-block">
                <select name="tabletype" class="layui-select">
                    {foreach $getTabletypeList as $key=>$vo}
                    <option value="{$key}">{$vo|raw}</option>
                    {/foreach}
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label required">排序</label>
            <div class="layui-input-block">
                <input type="text" name="sort" class="layui-input" lay-reqtext="请输入排序" placeholder="请输入排序" value="100">
                <tip>填写排序。</tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">分页</label>
            <div class="layui-input-block">
                <input type="checkbox" name="is_page" checked lay-skin="switch" lay-text="开启|禁用">
                <!--<tip>填写排序。</tip>-->
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">状态</label>
            <div class="layui-input-block">
                <input type="checkbox" name="status" checked lay-skin="switch" lay-text="开启|禁用">
                <!--<tip>填写排序。</tip>-->
            </div>
        </div>

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>